package com.practice.share.service.impl;

import com.practice.share.basemapper.SameService;
import com.practice.share.mapper.ThemeMessageMapper;
import com.practice.share.model.pojo.ThemeMessage;
import com.practice.share.service.ThemeMessageOperationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ThemeMessageOperationServiceImpl extends SameService<ThemeMessage> implements ThemeMessageOperationService {
    @Resource
    private ThemeMessageMapper themeMessageMapper;


    /**
     * 获取所有主题
     */
    public List<ThemeMessage> getAllTheme(Integer use) {
        return themeMessageMapper.getAllTheme(use);
    }
}
